
<?php 
@session_start();
$cliente	= $_anu->pegaUsuarioPeloAnuncio($_SESSION['idcliente']);
$chat 		= mysql_num_rows(mysql_query("select * from chat_mensagem where vendedor = '".$cliente["id"]."' and usuario != '0'"));

?>

<div id="header">
	<div id="topo">
	  <div style="width:510px; margin-top:4px; float:left"> 
	  
	  <a href="/"><img src="images/logo-setembro-5.png"  border="0" align="left" /></a>
	  
	 	 <?php if($_SESSION['logadosite']==1){ ?>
		<div style="padding:5px">&nbsp;</div>
	  Ol&aacute; <strong><?=$cliente["napresentacao"]?></strong>,
		seja bem-vindo! <a href="modulos/cadastro/logout.php">Sair</a>
	    <img src="images/chat.jpg" width="20" align="" hspace="5" />(<strong><?=$chat?></strong>) <a class="online" title="CONVERSE COM >> <?=$cliente['napresentacao']?>" href="javascript:void(0);" onclick="javascript: NovaJanela('/chat/index.php?vendedor=<?=$cliente['id']?>','Chat programar � arte','620','560','yes') ; ">chat</a>
	  <?php }else{ ?>  
	  <br />
	<br />
	
	  Ol&aacute; <strong>visitante</strong>, seja bem-vindo. <a href="entrar.php">Registre-se</a>!
	  
	  <? } ?>
	    
	    
	    
	  </div>
	  <div id="menusocial">
	  
			  <ul id="menusocialul">
			
					 <?php if($_SESSION['logadosite']==1){ ?>
					<li class="ver-menu" ><a href="painel.php" style="color:#069"><b>Painel do usu&aacute;rio</b></a>&nbsp;&nbsp;|</li>
					<? }else{ ?>
					<li class="ver-menu" ><a href="http://www.solmais.com.br">inicial</a>&nbsp;&nbsp;|</li>
					<? } ?>
					
					<li class="lar-menu" ><a href="entrar.php">login</a>&nbsp;&nbsp;|</li>
					<li class="ama-menu" ><a href="novo-anuncio.php">anunciar (&eacute; gratuito!)</a>&nbsp;&nbsp;|</li>
					<li class="azul-menu"><a href="paginas.php?pagina=contato">fale conosco</a></li>
			
				</ul>
	
		</div>
	
	
	</div>
</div>